package com.csaba.connector.model;

import java.net.URL;
import java.util.Currency;

public class Bank
{
	private String id;
	private String name;
	private Country country;
	private URL smallIcon;
	private URL largeIcon;
	private Currency baseCurrency;

	public URL getSmallIcon()
	{
		return smallIcon;
	}

	public URL getLargeIcon()
	{
		return largeIcon;
	}

	public String getId()
	{
		return id;
	}

	public void setId( String id )
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName( String name )
	{
		this.name = name;
	}

	public Country getCountry()
	{
		return country;
	}

	public void setCountry( Country country )
	{
		this.country = country;
	}

	@Override
	public boolean equals( Object other )
	{
		return other instanceof Bank && ( (Bank) other ).id.equals(this.id);
	}

	@Override
	public String toString()
	{
		return name + "[" + id + "]"; //$NON-NLS-1$ //$NON-NLS-2$
	}

	public void setSmallIcon( URL smallIcon )
	{
		this.smallIcon = smallIcon;
	}

	public void setLargeIcon( URL largeIcon )
	{
		this.largeIcon = largeIcon;
	}

	public Currency getBaseCurrency()
	{
		return baseCurrency;
	}

	public void setBaseCurrency( Currency baseCurrency )
	{
		this.baseCurrency = baseCurrency;
	}
}
